/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

/**
 *
 * @author ali
 */
public class MsgPrinter {

    static final String SEP = " : ";
    public static void print(Object msg){
        String stackTraceElement = getStackTraceElement();
//        msg = stackTraceElement + SEP + msg;
        System.out.println(msg);
    }

    public static void warn(Object msg){
        System.out.println("WARNING : "+msg);
    }

    public static void error(Object msg){
        System.out.println("ERROR "+msg);
    }

    private static String getStackTraceElement(){
        String ste = ((new Exception()).getStackTrace()[2]).toString();

        return ste;
    }
}
